﻿@using System.Security.Policy
@model Dexter.Web.Mvc.ViewModel.Backoffice.ViewsData.SettingsController.PluginsViewData
@{
	ViewBag.Title = "Index";
	Layout = "~/Areas/Admin/Views/Shared/_BackOffice.cshtml";
}
<section class="grid_12">
	<div class="block-border">
		<form class="block-content form" id="table_form" method="post" action="">
			<h1>Dexter Plugins</h1>
				

			<div class="no-margin">
				<table class="table" cellspacing="0" width="100%">
					<thead>
						<tr>
							<th class="col">Identifier</th>
							<th scope="col">Name</th>
							<th scope="col">Author</th>
							<th scope="col">Website</th>
							<th scope="col">Version</th>
							<th scope="col">Enabled</th>
							<th scope="col">Is Installed</th>
							<th scope="col" class="table-actions">Actions</th>
						</tr>
					</thead>
					@foreach (var plugin in Model.Plugins) {
						<tr>
							<th scope="row" class="table-check-cell">
								@plugin.Identifier
							</th>
							<td>
								@plugin.Name
							</td>
							<td>
								@plugin.Author
							</td>
							<td>
								<a href="@plugin.Website" target="_blank">@plugin.Website</a>
							</td>
							<td>
								@plugin.Version
							</td>
							<td>@plugin.Enabled</td>
							<td>@plugin.IsInstalled</td>
							<td class="table-actions">
								<a href="#" title="View" class="with-tip" target="_blank"><img src="@Url.Content( "~/admin/Resources/images/Icons/Fugue/magnifier.png" )" width="16" height="16" alt="View Item" /></a>
								<a href="#" title="Edit" class="with-tip"><img src="@Url.Content( "~/admin/Resources/images/Icons/Fugue/pencil.png" )" width="16" height="16" alt="Edit Item" /></a>
								<a href="#" title="Delete" class="with-tip"><img src="@Url.Content( "~/admin/Resources/images/Icons/Fugue/cross-circle.png" )" width="16" height="16" alt="Delete Item" /></a>
							</td>
						</tr>

					}
				</table>

			</div>
		</form>
	</div>
</section>